package com.avocado.base.service;

import com.avocado.base.dto.role.RoleAddDto;
import com.avocado.base.dto.role.RoleEditDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.avocado.base.dto.role.RoleQueryDto;
import com.avocado.base.entity.Role;

import java.util.List;

public interface RoleService {
	
	 Role getOne(Long id);
	
     Long add(RoleAddDto t);
    
     void update(RoleEditDto t);

     Page<Role> findByPage(Pageable pageable, RoleQueryDto dto);
    
  	 List<Role> findAll(RoleQueryDto dto);
    
     Boolean deleteById(Long id);

    List<Role> findAllByCategory(String category);
	
    Role findByCode(String code);

    List<Role> findAll();

    List<Role> findAllRoleForUser(Long userId);

}
